package com.bd.rj.frontstage.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bd.rj.common.entity.Enterprise;
import com.bd.rj.frontstage.mapper.EnterpriseMapper;
import com.bd.rj.frontstage.service.IEnterpriseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 白世俊
 * @since 2025-01-03
 */
@Service
public class EnterpriseServiceImpl extends ServiceImpl<EnterpriseMapper, Enterprise> implements IEnterpriseService {
    @Autowired
    private EnterpriseMapper enterpriseMapper;
    /**
     * @desc 根据岗位id查询企业电话
     * @author yxh
     */
    @Override
    public List<String> getDistinctPhonesByEid(Long eid) {
        return enterpriseMapper.selectDistinctPhoneByEid(eid);
    }
}
